<div class="editor-default-node4-header-medium" data-template="t_4_3">
	<img src="https://urc-thumb.oss-cn-beijing.aliyuncs.com/resource-temp/1725514076938section-ico4.png">1.2.7
	登录openGauss数据库
</div>
<p class="row_dist_2 word_dist_0" style="text-align:justify;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;安装完成后系统会自动启动openGauss数据库。openGauss的访问需要切换到操作系统的omm用户下才能执行。</p>
<p><span class="font_blue2 font_wryh">[root@node1
		openGauss]# su - omm</span></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在omm用户下登录数据库，如图1-2-10所示。</p>
<p><span class="font_blue2 font_wryh">[omm@node1
		~]$ gsql -d postgres -p 15400 -r</span></p>
<p style="text-align:center;" id="pic_p_FKSQLFYVKJ"><img res-type="image" class="insertPic cres" id="FKSQLFYVKJ"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=FKSQLFYVKJ" style="max-width:100%;"><br><span
		class="insertPicTitle" id="pic_title_FKSQLFYVKJ">图1-2-10 登录数据库</span></p>